package ltd.dujiabao.springcloud.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import ltd.dujiabao.springcloud.entities.CommonResult;

/**
 * @author : DuJiabao
 * @Project : springcloud
 * @Time : 2021/5/26 18:12
 * @Desc :
 */
public class BlockHandler {
  public static CommonResult<Object> handleException1(BlockException exception) {
    return new CommonResult<>(CommonResult.FAIlURE, "handleException1: 这是一个失败的处理");
  }

  public static CommonResult<Object> handleException2(BlockException exception) {
    return new CommonResult<>(CommonResult.FAIlURE, "handleException2: 这是一个失败的处理");
  }
}
